<!DOCTYPE html>
<html>
<head>
    <title>摄像头管理表</title>
		<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">

        <div class="layui-row">
            <div class="layui-col-xs2">
                <div class="layui-col-xs4 prop">
                    <span>设备出厂名称</span>
                </div>
                <div class="layui-col-xs8 select-content">
                    <i-input v-model="search.name" />
                </div>
            </div>
            <div class="layui-col-xs5">
                <a class="btn btn-primary" @click="query"><i class="fa fa-search"></i>&nbsp;查询</a>
                <a class="btn btn-primary" @click="reset"><i class="fa fa-refresh"></i>&nbsp;重置</a>
            </div>
        </div>
        <div class="grid-btn">
			<#if shiro.hasPermission("monitor:bmonitorcamera:save")>
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			</#if>
			<#if shiro.hasPermission("monitor:bmonitorcamera:update")>
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			</#if>
			<#if shiro.hasPermission("monitor:bmonitorcamera:delete")>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">


                                                                <div class="form-group">
                        <div class="col-sm-3 control-label">仓库名称</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="bMonitorCamera.wareHouseId" placeholder="仓库id"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">设备出厂名称<!--（海康高清红外球机）--></div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="bMonitorCamera.name" placeholder="设备出厂名称（海康高清红外球机）"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">别名<!--（l例：1号仓球机）--></div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="bMonitorCamera.alias" placeholder="别名（l例：1号仓球机）"/>
                        </div>
                    </div>
										                       <div class="form-group">
                        <div class="col-sm-2 control-label">账号</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="bMonitorCamera.username" placeholder="账号"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">密码</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="bMonitorCamera.password" placeholder="密码"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">ip地址</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="bMonitorCamera.ip" placeholder="ip地址"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">端口</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="bMonitorCamera.port" placeholder="端口"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">端口（后端）</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="bMonitorCamera.innerPort" placeholder="端口"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">子网掩码</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="bMonitorCamera.subnetmask" placeholder="子网掩码"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">网关</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="bMonitorCamera.gateway" placeholder="网关"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">设备类型<!-- 2枪机 1球机--></div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="bMonitorCamera.type" placeholder="设备类型 2枪机 1球机"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">所属厂商 <!--1-200海康 2-300大华 3其他--></div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="bMonitorCamera.factory" placeholder="所属厂商 1-200海康 2-300大华 3其他"/>
                        </div>
                    </div>
					<div class="form-group">
                        <div class="col-sm-2 control-label">所在位置</div>
                        <div class="col-sm-10">
                           <!-- <input type="text" class="form-control" v-model="bMonitorCamera.live" placeholder="所在位置"/>-->
                            <select class="form-control" v-model="bMonitorCamera.live">
                                <option v-for="item in locationList" :value="item.id">{{item.name}}</option>
                            </select>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">设备型号</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="bMonitorCamera.modelNumber" placeholder="设备型号"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">设备序列号</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="bMonitorCamera.serialNumber" placeholder="设备序列号"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">安装位置</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="bMonitorCamera.installationSite" placeholder="安装位置"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">安装方式</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="bMonitorCamera.installationMethod" placeholder="安装方式"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">照射区域</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="bMonitorCamera.irradiatedArea" placeholder="照射区域"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">取电位置</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="bMonitorCamera.powerPosition" placeholder="取电位置"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">备注</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="bMonitorCamera.remark" placeholder="备注"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">通道号</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="bMonitorCamera.channelNumber" placeholder="通道号"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">是否位主摄像机</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="bMonitorCamera.isMain" placeholder="是否位主摄像机"/>
                        </div>
                    </div>
						<!--					                    <div class="form-group">
                        <div class="col-sm-2 control-label">创建人id</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="bMonitorCamera.createUserId" placeholder="创建人id"/>
                        </div>
                    </div>-->
						<!--					                    <div class="form-group">
                        <div class="col-sm-2 control-label">删除标志0删除，1未删除</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="bMonitorCamera.isDel" placeholder="删除标志0删除，1未删除"/>
                        </div>
                    </div>-->
					<!--						                    <div class="form-group">
                        <div class="col-sm-2 control-label">创建时间</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="bMonitorCamera.createTime" placeholder="创建时间"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">修改时间</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="bMonitorCamera.updateTime" placeholder="修改时间"/>
                        </div>
                    </div>-->
					 <div class="form-group">
                        <div class="col-sm-2 control-label">是否启用,0不启用，1启用</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="bMonitorCamera.isUsed" placeholder="是否启用,0不启用，1启用"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">过期时间</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="bMonitorCamera.expireDate" placeholder="过期时间"/>
                        </div>
                    </div>
							            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>



        </form>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/monitor/bmonitorcamera.js?_${.now?long}"></script>
</body>
</html>